PyTure Docs

Introduction

Welcome to PyTure, a lightweight Python library for capturing and exporting structured data.

PyTure is a lightweight Python library designed to capture runtime data/events, store them in memory, and later export/save them in JSON or CSV formats. It’s useful for logging, debugging, tracking experiments, or session-based data collection.

Key Features

🎯

Simple Data Capture

Easily capture runtime events with automatic timestamps and session IDs.

πŸ’Ύ

Flexible Saving

Save captures to JSON with multiple modes: raw, timestamp, session, or full.

πŸ“‚

CSV Export

Export captured data to structured CSV for further analysis or sharing.

πŸ“œ

Session Tracking

Each run is tracked with a unique session ID and metadata for better organization.

Capture Modes

Normal

Default mode, captures and saves data silently without debug output.

Dev

Developer-friendly mode, prints debug information when capturing, saving, loading, or exporting.

Saving Modes

πŸ“¦

Raw

Only captured data, no metadata.

⏱️

Timestamp

Includes timestamp with data.

πŸͺͺ

Session

Includes session ID with data.

πŸ“‘

Full

Default, includes timestamp, session, and data.